package com.erp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName(value = "t_financialjournal")
public class FinancialJournal implements Serializable {

    private Long id;

    @TableField(value = "userId")
    private Long userId;

    @TableField(value = "dbTable")
    private String DBTable;

    private String operation;

    private String details;

    private LocalDateTime time = LocalDateTime.now();

    public FinancialJournal(){
    }

    public FinancialJournal(Long userId,String table,String operation){
        this.userId=userId;
        this.DBTable=table;
        this.operation=operation;
    }

    public FinancialJournal(Long userId,String table,String operation,String details){
        this.userId=userId;
        this.DBTable=table;
        this.operation=operation;
        this.details=details;
    }
}
